﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Library_Code.DAL;

namespace Library_Code.BIZ
{
   public class PHIEUNHAP
    {
       PhieuNhapDAL dal = new PhieuNhapDAL();
           [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int IdPhieuNhap { get; set; }
        public string NhanVien { get; set; }
        public DateTime NgayGio { get; set; }
        public int TongTien { get; set; }
        public string NhaCungCap { get; set; }

        public virtual List<CTPN> CTPNs { get; set; }

       //phuong thuc
        public int ThemPhieuNhap()
        {
            return dal.ThemPhieuNhap(this);
        }
    }
}
